function bdshare(size) {
	var size = size || "24";
	if ("16" == size) var bdshare_str =
		'<a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="popup_sqq" data-cmd="sqq" title="QQ好友"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="popup_weixin" data-cmd="weixin" title="微信"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>';
	else var bdshare_str =
		'<a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="popup_sqq" data-cmd="sqq" title="QQ好友"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="popup_weixin" data-cmd="weixin" title="微信"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>';
	with($(".bdsharebuttonbox").html(bdshare_str), window._bd_share_config = {
		common: {
			bdSnsKey: {},
			bdText: "",
			bdPic: "",
			bdMini: "2",
			bdMiniList: !1,
			bdStyle: "1",
			bdSize: size
		},
		share: {}
	}, document) 0[(getElementsByTagName("head")[0] || body).appendChild(createElement("script")).src =
		"http://bdimg.share.baidu.com/static/api/js/share.js?v=86835285.js?cdnversion=" + ~(-new Date / 36e5)]
}! function() {
	var a = $(window),
		b = $("#search"),
		c = b.find('input[type="submit"]'),
		d = b.find('input[type="text"]'),
		e = !0,
		f = {
			show: function() {
				e = !0, b.addClass("search-on")
			},
			hide: function() {
				e = !1, b.removeClass("search-on")
			}
		},
		g = function() {
			a.width() <= 960 ? f.hide() : f.show()
		};
	c.click(function() {
		var b = $.trim(d.val());
		return "" == b ? (a.width() <= 960 && (e ? f.hide() : f.show()), !1) : void 0
	}), a.resize(g), g()
}(),
function() {
	var a = $(".header .nav"),
		b = a.find(".trigger");
	b.click(function() {
		a.toggleClass("nav-on")
	})
}(),
function() {
	var a = function() {
		var a = navigator.userAgent.toLowerCase();
		return a.indexOf("mobi") > 0 || a.indexOf("tablet") > 0 || a.indexOf("ipad") > 0 || a.indexOf("nexus 7") > 0 || a.indexOf(
			"480") > 0
	}();
	a && $("a").attr("target", "_self")
}();
